
package com.ruoyi.client.service.impl;

import com.ruoyi.client.mapper.ClientHomeMapper;
import com.ruoyi.client.pojo.vo.HomeCarouselVo;
import com.ruoyi.client.pojo.vo.HomeGoodsVo;
import com.ruoyi.client.service.ClientHomeService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;

@Service
public class ClientHomeServiceImpl implements ClientHomeService {
    @Resource
    private ClientHomeMapper clientHomeMapper; // 注入数据层的Bean


    @Override
    public List<HomeCarouselVo> selectCarouseVoList() {
        return clientHomeMapper.selectCarouseVoList();
    }

    @Override
    public List<HomeGoodsVo> selectRecommendGoodsVoList() {
        //为你推荐
        return clientHomeMapper.selectGoodsVoList(2);
    }

}
